﻿<Window x:Class="GetTpb.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded" Name="window1" Icon="/GetTPB;component/TPB.ico"
        >
    <Window.TaskbarItemInfo>
        <TaskbarItemInfo/>
    </Window.TaskbarItemInfo>
    <Window.Resources>

        <LinearGradientBrush x:Key="winBck" x:Name="winBck">
            <GradientStop Offset="0.8" Color="LightGoldenrodYellow"/>
            <GradientStop Offset="0.1" Color="LightGreen"/>
        </LinearGradientBrush>

        <Style TargetType="Window">
            <Setter Property="Background" Value="{StaticResource winBck}"></Setter>
        </Style>        

    </Window.Resources>
    <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="160*" />
            <RowDefinition Height="40*" />
        </Grid.RowDefinitions>

        <WrapPanel HorizontalAlignment="Stretch" Name="wrapPanel1" VerticalAlignment="Stretch"  Margin="0" Orientation="Vertical" Background="{StaticResource winBck}" Grid.Column="0"/>
        <Button Content="Go!" HorizontalAlignment="Stretch" Name="button1" VerticalAlignment="Stretch" Click="button1_Click" Margin="0,0,0,0" Grid.Row="1" 
                FontSize="20"
                FontWeight="Black"
                />
        <Grid.ContextMenu>
            <ContextMenu>
                <MenuItem Header="Select All" Click="MenuItem_Select_Click">
                </MenuItem>
                <MenuItem Header="Unselect All" Click="MenuItem_Unselect_Click">
                </MenuItem>
            </ContextMenu>
        </Grid.ContextMenu>
    </Grid>

</Window>
